.class Lcom/tendcloud/tenddata/fq$c;
.super Landroid/telephony/PhoneStateListener;


# instance fields
.field a:J

.field b:J

.field c:I

.field final synthetic d:Lcom/tendcloud/tenddata/fq;


# direct methods
.method constructor <init>(Lcom/tendcloud/tenddata/fq;)V
    .locals 2

    const-wide/16 v0, 0x0

    iput-object p1, p0, Lcom/tendcloud/tenddata/fq$c;->d:Lcom/tendcloud/tenddata/fq;

    invoke-direct {p0}, Landroid/telephony/PhoneStateListener;-><init>()V

    iput-wide v0, p0, Lcom/tendcloud/tenddata/fq$c;->a:J

    iput-wide v0, p0, Lcom/tendcloud/tenddata/fq$c;->b:J

    return-void
.end method

.method private a()V
    .locals 4

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/tendcloud/tenddata/fq$c;->a:J

    iget v0, p0, Lcom/tendcloud/tenddata/fq$c;->c:I

    iget-object v1, p0, Lcom/tendcloud/tenddata/fq$c;->d:Lcom/tendcloud/tenddata/fq;

    invoke-static {v1}, Lcom/tendcloud/tenddata/fq;->e(Lcom/tendcloud/tenddata/fq;)I

    move-result v1

    if-eq v0, v1, :cond_3

    iget v0, p0, Lcom/tendcloud/tenddata/fq$c;->c:I

    const/4 v1, 0x1

    if-le v0, v1, :cond_3

    iget-wide v0, p0, Lcom/tendcloud/tenddata/fq$c;->a:J

    iget-wide v2, p0, Lcom/tendcloud/tenddata/fq$c;->b:J

    sub-long/2addr v0, v2

    const-wide/32 v2, 0x2bf20

    cmp-long v0, v0, v2

    if-lez v0, :cond_3

    const/4 v0, 0x0

    sget-boolean v1, Lcom/tendcloud/tenddata/ab;->h:Z

    if-eqz v1, :cond_0

    invoke-static {}, Lcom/tendcloud/tenddata/ew;->b()Ljava/lang/String;

    move-result-object v0

    :cond_0
    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/tendcloud/tenddata/br;->s(Landroid/content/Context;)Lorg/json/JSONArray;

    move-result-object v1

    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    invoke-static {v2}, Lcom/tendcloud/tenddata/br;->t(Landroid/content/Context;)Lorg/json/JSONArray;

    move-result-object v2

    if-nez v1, :cond_1

    if-eqz v2, :cond_2

    :cond_1
    invoke-static {}, Lcom/tendcloud/tenddata/fs;->a()Lcom/tendcloud/tenddata/fs;

    move-result-object v3

    invoke-virtual {v3, v1, v2, v0}, Lcom/tendcloud/tenddata/fs;->b(Lorg/json/JSONArray;Lorg/json/JSONArray;Ljava/lang/String;)V

    :cond_2
    iget-wide v0, p0, Lcom/tendcloud/tenddata/fq$c;->a:J

    iput-wide v0, p0, Lcom/tendcloud/tenddata/fq$c;->b:J

    iget-object v0, p0, Lcom/tendcloud/tenddata/fq$c;->d:Lcom/tendcloud/tenddata/fq;

    iget v1, p0, Lcom/tendcloud/tenddata/fq$c;->c:I

    invoke-static {v0, v1}, Lcom/tendcloud/tenddata/fq;->a(Lcom/tendcloud/tenddata/fq;I)I
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_3
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method


# virtual methods
.method public onCellLocationChanged(Landroid/telephony/CellLocation;)V
    .locals 2

    :try_start_0
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    const-class v1, Landroid/telephony/gsm/GsmCellLocation;

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    check-cast p1, Landroid/telephony/gsm/GsmCellLocation;

    invoke-virtual {p1}, Landroid/telephony/gsm/GsmCellLocation;->getLac()I

    move-result v0

    iput v0, p0, Lcom/tendcloud/tenddata/fq$c;->c:I

    invoke-direct {p0}, Lcom/tendcloud/tenddata/fq$c;->a()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    const-class v1, Landroid/telephony/cdma/CdmaCellLocation;

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    check-cast p1, Landroid/telephony/cdma/CdmaCellLocation;

    invoke-virtual {p1}, Landroid/telephony/cdma/CdmaCellLocation;->getNetworkId()I

    move-result v0

    iput v0, p0, Lcom/tendcloud/tenddata/fq$c;->c:I

    invoke-direct {p0}, Lcom/tendcloud/tenddata/fq$c;->a()V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0
.end method
